package rc.alfresco.users.dao;

import com.ibatis.sqlmap.client.SqlMapClient;
import rc.alfresco.users.dto.RcUserTEO;

/**
 * Created by IntelliJ IDEA.
 * User: Slejus
 * Date: 13.11.26
 * Time: 13.42
 * To change this template use File | Settings | File Templates.
 */
public class RcUserDaoIbatis implements RcUserDao
{

    @Override
    public RcUserTEO getUserByAmnId(Integer amnId, SqlMapClient sqlmapClient) {
        try {
            RcUserTEO user = (RcUserTEO)sqlmapClient.queryForObject("user.getUserById",amnId);
            return user;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
